Optimal. Leaf size=92 \[ \frac {B \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 B \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3 B x}{8}+\frac {C \sin ^5(c+d x)}{5 d}-\frac {2 C \sin ^3(c+d x)}{3 d}+\frac {C \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {3010, 2748, 2635, 8, 2633} \[ \frac {B \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 B \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3 B x}{8}+\frac {C \sin ^5(c+d x)}{5 d}-\frac {2 C \sin ^3(c+d x)}{3 d}+\frac {C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2633
Rule 2635
Rule 2748
Rule 3010
Rubi steps
\begin {align*} \int \cos ^3(c+d x) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx &=\int \cos ^4(c+d x) (B+C \cos (c+d x)) \, dx\\ &=B \int \cos ^4(c+d x) \, dx+C \int \cos ^5(c+d x) \, dx\\ &=\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {1}{4} (3 B) \int \cos ^2(c+d x) \, dx-\frac {C \operatorname {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac {C \sin (c+d x)}{d}+\frac {3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {2 C \sin ^3(c+d x)}{3 d}+\frac {C \sin ^5(c+d x)}{5 d}+\frac {1}{8} (3 B) \int 1 \, dx\\ &=\frac {3 B x}{8}+\frac {C \sin (c+d x)}{d}+\frac {3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {2 C \sin ^3(c+d x)}{3 d}+\frac {C \sin ^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 89, normalized size = 0.97 \[ \frac {3 B (c+d x)}{8 d}+\frac {B \sin (2 (c+d x))}{4 d}+\frac {B \sin (4 (c+d x))}{32 d}+\frac {C \sin ^5(c+d x)}{5 d}-\frac {2 C \sin ^3(c+d x)}{3 d}+\frac {C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 64, normalized size = 0.70 \[ \frac {45 \, B d x + {\left (24 \, C \cos \left (d x + c\right )^{4} + 30 \, B \cos \left (d x + c\right )^{3} + 32 \, C \cos \left (d x + c\right )^{2} + 45 \, B \cos \left (d x + c\right ) + 64 \, C\right )} \sin \left (d x + c\right )}{120 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.37, size = 77, normalized size = 0.84 \[ \frac {3}{8} \, B x + \frac {C \sin \left (5 \, d x + 5 \, c\right )}{80 \, d} + \frac {B \sin \left (4 \, d x + 4 \, c\right )}{32 \, d} + \frac {5 \, C \sin \left (3 \, d x + 3 \, c\right )}{48 \, d} + \frac {B \sin \left (2 \, d x + 2 \, c\right )}{4 \, d} + \frac {5 \, C \sin \left (d x + c\right )}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.21, size = 70, normalized size = 0.76 \[ \frac {\frac {C \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+B \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 69, normalized size = 0.75 \[ \frac {15 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B + 32 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} C}{480 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.63, size = 115, normalized size = 1.25 \[ \frac {3\,B\,x}{8}+\frac {\left (2\,C-\frac {5\,B}{4}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {8\,C}{3}-\frac {B}{2}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\frac {116\,C\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{15}+\left (\frac {B}{2}+\frac {8\,C}{3}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (\frac {5\,B}{4}+2\,C\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}^5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.79, size = 173, normalized size = 1.88 \[ \begin {cases} \frac {3 B x \sin ^{4}{\left (c + d x \right )}}{8} + \frac {3 B x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{4} + \frac {3 B x \cos ^{4}{\left (c + d x \right )}}{8} + \frac {3 B \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {5 B \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{8 d} + \frac {8 C \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {4 C \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {C \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \left (B \cos {\relax (c )} + C \cos ^{2}{\relax (c )}\right ) \cos ^{3}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________